//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//


import request from "@/request"


// 添加
export function AddProgramSQL(data = {}) {
    return request({url: '/api/ProgramSQL/AddProgramSQL', method: 'post', data})
}

// 删除
export function DeleteProgramSQL(params = {}) {
    return request({url: '/api/ProgramSQL/DeleteProgramSQL', method: 'delete', params})
}

// 修改
export function UpdateProgramSQL(data = {}) {
    return request({url: '/api/ProgramSQL/UpdateProgramSQL', method: 'put', data})
}

// 分页
export function GetProgramSQLPageList(params = {}, data = {}) {
    return request({url: '/api/ProgramSQL/GetProgramSQLPageList', method: 'post', params, data})
}

/**
 * 查询程序列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetProgramList(data = {}) {
    return request({url: "/api/Program/GetProgramList", method: "post", data})
}